home *** CD-ROM | disk | FTP | other *** search
/ Risc World 3 / Risc World 3.iso / SOFTWARE / ISSUE2 / PD / CAMPINS.ZIP / resources / errorcheck < prev    next >
Text File  |  2002-06-28  |  2KB  |  31 lines

  1. SET curl_error <Sys$ReturnCode>
  2. IF "<curl_error>" > 0 THEN ECHO Error returned by Curl was : <curl_error>
  3. IF "<curl_error>" = 3 THEN ECHO URL malformat. Is this URL really correct?
  4. IF "<curl_error>" = 5 THEN ECHO Couldn't resolve Proxy. Did you specify a correct Web Proxy URL?
  5. IF "<curl_error>" = 6 THEN ECHO Couldn't resolve Host. Is the URL correct?
  6. IF "<curl_error>" = 7 THEN ECHO Failed to connect to Host. Perhaps the Host is busy or not working? Maybe try again later.
  7. IF "<curl_error>" = 18 THEN ECHO Partial file. Only a part of the file was downloaded. Perhaps the Web site is busy?
  8. IF "<curl_error>" = 22 THEN ECHO HTTP not found. Perhaps the page you want no longer exists?
  9. IF "<curl_error>" = 23 THEN ECHO Can't write the downloaded file onto your disc drive. Perhaps the file is already open and in use by some other program or CAMPIN Script?
  10. IF "<curl_error>" = 28 THEN ECHO Operation Timeout. Sorry, it's taking too long to do this. Stopping.
  11. IF "<curl_error>" = 52 THEN ECHO Host didn't return anything. Is the URL correct? Perhaps the Host is just busy?
  12.  
  13. IF "<curl_http_code>" > 300 AND  "<curl_http_code>" < 400 THEN ECHO Redirection request has been send by the Web site. Your original URL is wrong and needs to be updated. Read the 'duffImage' HTML file located in Campins.Resources.
  14.  
  15. IF "<curl_http_code>" > 200 THEN ECHO HTTP Error code was <curl_http_code>. 
  16. IF "<curl_http_code>" = 400 THEN ECHO Web site URL is very wrong. Bad Syntax?
  17. IF "<curl_http_code>" = 402 THEN ECHO You have to pay to access this Web site.
  18. IF "<curl_http_code>" = 401 OR "<curl_http_code>" = 403 THEN ECHO You are forbidden to access this Web site.
  19. IF "<curl_http_code>" = 404 THEN ECHO Your URL is out of date and the file is no longer on this Server.
  20.  
  21.  
  22. IF "<curl_http_code>" = 500 THEN ECHO This Web site appear to be down. Their Server appears to be broken or very slow.
  23. IF "<curl_http_code>" > 500 AND "<curl_http_code>" < 600 THEN ECHO This Web site appears to be very slow or is down. Perhaps it's getting maintenance today?
  24. IF "<curl_http_code>" > 500 AND "<curl_http_code>" < 600 THEN ECHO Read the 'duffImage' HTML file located in Campins.Resources for clues. 
  25. IF "<curl_error>" > 0 OR "<curl_http_code>" > 200 THEN ECHO URL being fetched was this:
  26. IF "<curl_error>" > 0 OR "<curl_http_code>" > 200 THEN ECHO <curl_url_effective>
  27.  
  28.  
  29.  
  30. |IF "<curl_error>" = 6 THEN SHOW *
  31.